/**

 @Name：layuiAdmin iframe版全局配置
 @Author：贤心
 @Site：http://www.layui.com/admin/
 @License：LPPL（layui付费产品协议）
    
 */

layui.define(['laytpl', 'layer', 'element', 'util'], function (exports) {
  exports('setter', {
    container: 'LAY_app' //容器ID
    , base: layui.cache.base //记录静态资源所在路径
    , views: layui.cache.base + 'tpl/' //动态模板所在目录
    , entry: 'index' //默认视图文件名
    , engine: '.html' //视图文件后缀名

    , name: 'layuiAdmin'
    , tableName: 'layuiAdmin' //本地存储表名
    , MOD_NAME: 'admin' //模块事件名

    , debug: true //是否开启调试模式。如开启，接口异常时会抛出异常 URL 等信息

    //自定义请求字段
    , request: {
      tokenName: false //自动携带 token 的字段名（如：access_token）。可设置 false 不携带。
    }

    //自定义响应字段
    , response: {
      statusName: 'code' //数据状态的字段名称
      , statusCode: {
        ok: 0 //数据状态一切正常的状态码
        , logout: 1001 //登录状态失效的状态码
      }
      , msgName: 'msg' //状态信息的字段名称
      , dataName: 'data' //数据详情的字段名称
    }

    //扩展的第三方模块
    , extend: [
      'echarts', //echarts 核心包
      'echartsTheme' //echarts 主题
    ]
    //主题配置
    , theme: {
      //内置主题配色方案
      color: [{
        main: '#333' //主题色
        , selected: '#009688' //选中色
        , alias: 'default' //默认别名
      }, {
        main: '#333'
        , logo: '#3A3D49'
        , selected: '#009688'
        , alias: 'hezhou' //经典黑
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/hezhou/images/logo.png"></span>
          <h1>中凯社会网格化大平台平台</h1>
          <p>Urban And Social Grid Integrated Operation Management Platform</p>
        `
      }, {
        main: '#344058'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#1E9FFF'
        , alias: 'jijian' //海洋头
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/jijian/images/logo.png"></span>
          <h1>一体化系统•中山市电子纪检监察综合平台</h1>
          <p>Urban And Social Grid Integrated Operation Management Platform</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#1E9FFF'
        , alias: 'dali' //大沥
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/dali/images/logo.png"></span>
          <h1>平安大沥-信用协同管理云平台</h1>
          <p>Urban And Social Grid Integrated Operation Management Platform</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#1E9FFF'
        , alias: 'qixing' //七星
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/qixing/images/logo.png"></span>
          <h1>桂林七星区数字城管综合业务系统</h1>
          <p>Digital Urban Management Information System</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#1E9FFF'
        , alias: 'lingui' //临桂
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/lingui/images/logo.png"></span>
          <h1>临桂新区项目管理系统</h1>
          <p>Digital Urban Management Information System</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#1E9FFF'
        , alias: 'huoju' //火炬
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/huoju/images/logo.png"></span>
          <h1>火炬开发区网格化社会综合管理服务平台</h1>
          <p>Digital Urban Management Information System</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#5495ca'
        , alias: 'gdgov' //广东市政府
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/gdgov/images/logo.png"></span>
          <h1>广东省人民政务社会综合管理服务平台</h1>
          <p>Guang Dong Digital Urban Management Information System</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#5495ca'
        , alias: 'fire' //消防
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/fire/images/logo.png"></span>
          <h1>小榄镇指挥消防综合管理平台</h1>
          <p>Xiao Lan Digital Urban Management Information System</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#5495ca'
        , alias: 'xiaolan' //小榄
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/xiaolan/images/logo.png"></span>
          <h1>小榄镇政府综合管理平台</h1>
          <p>Xiao Lan Digital Urban Management Information System</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#5495ca'
        , alias: 'shaxi' //沙溪
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/shaxi/images/logo.png"></span>
          <h1>沙溪镇政府综合管理平台</h1>
          <p>Sha Xi Digital Urban Management Information System</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#1E9FFF'
        , alias: 'qixing' //七星
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/qixing/images/logo.png"></span>
          <h1>七星区智慧网格综合管理平台</h1>
          <p>Qi Xing Intelligent Grid Integrated Management Platform</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#1E9FFF'
        , alias: 'qixing' //七星
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/qixing/images/logo.png"></span>
          <h1>七星区数字化城市管理系统</h1>
          <p>Qi Xing Digital City Management System</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#1E9FFF'
        , alias: 'qixing' //七星
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/qixing/images/logo-hw.png"></span>
          <h1>七星区环卫管理系统</h1>
          <p>Qi Xing Environmental Sanitation Management System</p>
        `
      }, {
        main: '#111111'
        , logo: '#0085E8'
        , selected: '#1E9FFF'
        , header: '#1E9FFF'
        , alias: 'gzdz' //广州地震
        , logoHtml: `
          <span class="zkuasgm-icon logoico"><img src="/public/res/skin/gzdz/images/logo.png"></span>
          <h1>
          广州地震局应急指挥演练系统
          </h1>
          <p>Guangzhou Earthquake Administration Emergency Command and Drill System</p>
        `
      }]

      //初始的颜色索引，对应上面的配色方案数组索引
      //如果本地已经有主题色记录，则以本地记录为优先，除非请求本地数据（localStorage）
      , initColorIndex: 0
    }
  });
});
